<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jQuery.js"></script>
    <script>
        //js写法
        window.onload=function(){
            var bt =document.getElementById("bt");
            bt.onclick=function(){
                alert("222");
            }
        }

        //jquery
        $(function(){
            var $input = $("input");
            $input.click(function(){
                alert("滚")
            })
        })
    </script>
</head>
<body>
    <input type="button" value="点位" id="bt"/>
</body>
</html>